toolitem: set clip on allocation
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 3 Sep 2014 21:45:51 +0000 (14:45 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 3 Sep 2014 21:45:51 +0000 (14:45 -0700)
So that widgets that are children of tool items can render their shadows
too.

gtk/gtktoolitem.c

index 774ecd0f0d2bda6fb3a67db5b1b3dfd51e9d18ce..78e318863de68453544b57ea28d42106c37b49a4 100644 (file)
@@ -31,7 +31,7 @@
 #include "deprecated/gtkactivatable.h"
 #include "gtkintl.h"
 #include "gtkprivate.h"
-
+#include "gtkwidgetprivate.h"
 
 /**
  * SECTION:gtktoolitem
@@ -531,6 +531,8 @@ gtk_tool_item_size_allocate (GtkWidget     *widget,
       
       gtk_widget_size_allocate (child, &child_allocation);
     }
+
+  _gtk_widget_set_simple_clip (widget, NULL);
 }
 
 gboolean